package com.weepal.pavement.mqtt.demo.config.dataSource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

public class DynamicsDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceThreadLocal.getDatasources();
    }

    @Override
    public void afterPropertiesSet() {
        super.afterPropertiesSet();
    }
}
